package com.template.ejb.datasource;

import java.util.List;

import javax.ejb.Local;

import com.template.ejb.domain.Person;

@Local
public interface PersonDAO {

	public Person findById(Long id);
	
	public Person findByLogin(String login);
	
	public void create(Person person);

	public Person update(Person person);

	public void delete(Person person);
	
	public List<Person> getPersons(int offset, int limit);
}
